//
//  CoreDataHelper.h
//  Bango
//

#import <Foundation/Foundation.h>
#import "Profile.h"


@interface CoreDataHelper : NSObject {

}

+(Profile *) getMostRecentProfile :(NSManagedObjectContext *)context;
+(NSMutableArray *) getProfilesByDateDesc :(NSManagedObjectContext *)context;


+(NSMutableArray *) getProfilesByDateAsc :(NSManagedObjectContext *)context;

// gets all profiles in date order with the most recently added Profile at the front
+(NSMutableArray *) getEventsForProfile :(Profile*)profile context:(NSManagedObjectContext *)context;

+(NSMutableArray *) getObjectsFromContext: (NSString*) entityName : (NSString*) sortKey : (BOOL) sortAscending : (NSManagedObjectContext *) managedObjectContext;
+(NSMutableArray *) searchObjectsInContext: (NSString*) entityName : (NSPredicate *) predicate : (NSString*) sortKey : (BOOL) sortAscending : (NSManagedObjectContext *) managedObjectContext;



@end
